Drop gtk_snapshot_render_icon
authorMatthias Clasen <mclasen@redhat.com>
Wed, 29 Nov 2017 23:34:45 +0000 (18:34 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 Nov 2017 23:34:45 +0000 (18:34 -0500)
Its not used, and we are working towards removing
GdkPixbuf in the API.

gtk/gtksnapshot.c
gtk/gtksnapshot.h

index 888580604e08cdb97ed66304080b369f0b777af6..e97efb92c067d2f47fdd8aace4a800b6b137770b 100644 (file)
@@ -1480,38 +1480,3 @@ gtk_snapshot_render_layout (GtkSnapshot     *snapshot,
 
   gtk_snapshot_offset (snapshot, -x, -y);
 }
-
-/**
- * gtk_snapshot_render_icon:
- * @snapshot: a #GtkSnapshot
- * @context: the #GtkStyleContext to use
- * @pixbuf: the #GdkPixbuf to render
- * @x: X origin of the rectangle
- * @y: Y origin of the rectangle
- *
- * Creates a render node for rendering @pixbuf according to the style
- * information in @context, and appends it to the current node of @snapshot,
- * without changing the current node.
- *
- * Since: 3.90
- */
-void
-gtk_snapshot_render_icon (GtkSnapshot     *snapshot,
-                          GtkStyleContext *context,
-                          GdkPixbuf       *pixbuf,
-                          gdouble          x,
-                          gdouble          y)
-{
-  GdkTexture *texture;
-
-  texture = gdk_texture_new_for_pixbuf (pixbuf);
-  gtk_snapshot_offset (snapshot, x, y);
-  gtk_css_style_snapshot_icon_texture (gtk_style_context_lookup_style (context),
-                                       snapshot,
-                                       texture,
-                                       1,
-                                       FALSE);
-  gtk_snapshot_offset (snapshot, -x, -y);
-  g_object_unref (texture);
-}
-
index 551bec7f75d49e43ca0d12f614e05b7b6dfc842f..e1a1e2a6d2e96606e8385025bdd355d0e112ec71 100644 (file)
@@ -166,12 +166,6 @@ void            gtk_snapshot_render_insertion_cursor    (GtkSnapshot
                                                          PangoLayout            *layout,
                                                          int                     index,
                                                          PangoDirection          direction);
-GDK_AVAILABLE_IN_3_90
-void            gtk_snapshot_render_icon                (GtkSnapshot            *snapshot,
-                                                         GtkStyleContext        *context,
-                                                         GdkPixbuf              *pixbuf,
-                                                         gdouble                 x,
-                                                         gdouble                 y);
 
 G_END_DECLS